package org.aceor.mddal.common.constants;

/**
 * Created by lxue on 16/3/19.
 */
public interface Constants {
    public static final String DEFAULT_CHARSET = "UTF-8";
    public static final String DEFAULT_ZK_DOMAIN_NAME = "zk.mddal.aceor.org";
    public static final String DEFAULT_ZK_CLIENT_PORT = "2181";
    public static final int DEFAULT_ZK_MAX_RETRIES = 3;
    public static final int DEFAULT_ZK_BASE_SLEEP_TIME = 1000;
    public static final int DEFAULT_ZK_SESSION_TIMEOUT = 5000;



    public static final long MAX_UPDATE_NUM = 500 *  10000;


    public static final long DEFAULT_RETRY_BAD_DS_INTERVAL = 2000;

    //默认数据源重试次数
    public static final int DEFAULT_RETRY_TIMES = 3;

    //是否从zk获取ds-config配置
    public static final boolean IS_FETCH_DS_CONFIG_FROM_ZK = false;

    public static final long UNIT_SECOND = 1;
    public static final long UNIT_MINUTE = 60;
    public static final long UNIT_HOUR = 60 * 60;
    public static final long UNIT_DAY = 60 * 60 * 24;
    public static final long UNIT_MOUTH = 60 * 60 * 24;
    public static final long UNIT_YEAR = 1;
}
